namespace SimpleSocket.Packets
{
    internal class PacketCloseResult
    {
        /// <summary>
        /// before close state
        /// </summary>
        public readonly int BeforeState;

        /// <summary>
        /// wait sending packet array
        /// </summary>
        public readonly Packet[] Packets;

        /// <summary>
        /// new
        /// </summary>
        /// <param name="beforeState"></param>
        /// <param name="packets"></param>
        public PacketCloseResult(int beforeState, Packet[] packets)
        {
            this.BeforeState = beforeState;
            this.Packets = packets;
        }
    }
}